<!--  -->
<template>
  <div class="protocol">
    <!-- <van-nav-bar
      title="协议"
      left-arrow
      fixed
      placeholder
      @click-left="$router.go(-1)"
      v-if="!$route.query.id"
    /> -->
    <Header-Comp title="协议" />
    <div class="content">
      <div v-html="contentData" class="ql-editor"></div>
    </div>
  </div>
</template>
<script>
import { getUserAgreementInfo } from "@/api/protocol";
export default {
  data() {
    //这里存放数据
    return {
      contentData: "",
    };
  },
  created() {
    getUserAgreementInfo({
      deptId: this.$route.query.deptId || "1123598813738675201",
      userAgreementName: "注册协议",
    }).then((res) => {
      this.contentData = this.$decode(res.data.content);
    });
  },
};
</script>
<style scoped>
@import "./protocol.css";
</style>
<style lang='less' scoped>
.protocol {
  background: #ffffff;
  .content {
    // padding: 40px;
    font-size: 26px;
    font-family: PingFang SC;
    font-weight: 400;
    color: #131313;
    h3 {
      font-size: 34px;
      font-family: PingFang SC;
      font-weight: bold;
      color: #131313;
    }
    .content-date {
      margin-top: 23px;
      margin-bottom: 30px;
    }
    p {
      margin-bottom: 30px;
      text-indent: 2em;
    }
  }
}
</style>